<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>
    <script>
        var p = new Promise(function (resolve, reject) {
            setTimeout(function () {
                console.log('歌词下载完毕')
                resolve()
            }, 5000)
        })
        var p1 = new Promise(function (resolve, reject) {
            setTimeout(function () {
                console.log('歌曲下载完毕')
                resolve()
            }, 10000)
        })
        
        Promise.all([p, p1]).then(function(){
            alert('开始播放')
        }) 
    </script>
</body>

</html>